<?php echo $this->render('inc/header.htm') ?>
	<!-- Page content -->
	<div id="page">
		<!-- Wrapper -->
		<div class="wrapper">
			<!-- left column/section -->
			<aside class="column width2">
				<div id="rightmenu">
					<header>
						<?php if($this->tag_name == '首页') { ?>
						<h3>快捷操作</h3>
						<?php }else { ?>
						<h3><?php echo $this->tag_name ?></h3>
						<?php } ?>
					</header>
					<dl class="first">
						<dt><img width="16" height="16" alt="" SRC="img/page_white_go.png"></dt>
						<dd><a href="/admin/content/index">内容管理</a></dd>
						<dd class="last">内容管理</dd>
						
						<dt><img width="16" height="16" alt="" SRC="img/page_white_go.png"></dt>
						<dd><a href="/admin/category/index">分类管理</a></dd>
						<dd class="last">分类管理</dd>
					</dl>
				</div>
			</aside>
			<!-- End of left column/section -->
				
			<!-- right column/section -->
			<section class="column width6 right_content">
				<div class="colgroup leading">
					<div class="column width3 first">
						<h3>欢迎回来, <a href="#"><?php echo $this->admin_info['username'] ?></a></h3>
						<p>您有 <?php echo $this->user_message['count'] ?> 条未读消息！</p>
					</div>
					<div class="column width3">
						<h4>登录记录</h4>
						<p>
							时间 : <?php echo  date('Y-m-d H:i:s',$this->userInfo[0]['last_login']) ?><br />
							IP : <?php echo $this->userInfo[0]['last_ip'] ?><br />
							正常登录
						</p>
					</div>
				</div>
				<div class="colgroup leading">
					<div class="width3 system_info">
						<h4>系统信息:</h4>
						<hr/>
						<table class="no-style full">
							<tbody>
								<tr>
									<td width="120">程序版本</td>
									<td><?php echo $this->wd_version ?></td>
								</tr>
								<tr>
									<td width="120">UCenter 客户端版本</td>
									<td><?php echo $this->uc_version ?></td>
								</tr>
								<tr>
									<td width="120">服务器系统及 PHP</td>
									<td><?php echo PHP_OS ?> / PHP v<?php echo PHP_VERSION; ?></td>
								</tr>
								<tr>
									<td width="120">服务器软件</td>
									<td><?php echo $_SERVER['SERVER_SOFTWARE'] ?></td>
								</tr>
								<tr>
									<td width="120">服务器 MySQL 版本</td>
									<td><?php echo $this->mysql_version[0]['version'] ?></td>
								</tr>
								<tr>
									<td width="120">上传许可</td>
									<td><?php echo ini_get('upload_max_filesize') ?></td>
								</tr>
								<tr>
									<td width="120">当前数据库尺寸</td>
									<td><?php echo $this->db_total ?></td>
								</tr>
							</tbody>
						</table>
					</div>
					<?php if($this->user_message['count'] > 0) { ?>
					<div class="width3 system_info">
						<h4>未读消息:</h4>
						<hr/>
						<table class="no-style full">
							<tbody>
								<?php foreach($this->user_message['data'] as $v) { ?>
								<tr>
									<td>
										<div class="content-box corners">
											<header style="cursor: s-resize;">
												<h3><img alt="" src="img/information.png"><?php echo $v['subject'] ?></h3>
											</header>
											<section style="width: 97%;">
												<p><?php echo $v['message'] ?></p>
												<table class="no-style full">
													<tbody>
														<tr>
															<td><b>来自</b></td>
															<td class="ta-right"><?php echo $v['msgfrom'] ?></td>
														</tr>
														<tr>
															<td><b>发送时间</b></td>
															<td class="ta-right"><?php echo date('Y-m-d H:i:s',$v['dateline']) ?></td>
														</tr>
														<tr>
															<td><b>操作</b></td>
															<td class="ta-right"><a href="<?php echo __PROJECTNAME__ ?>/admin/index/message-box" class="del_message">进入收件箱</a></td>
														</tr>
													</tbody>
												</table>
											</section>
										</div>
									</td>
								</tr>
								<?php } ?>
							</tbody>
						</table>
					</div>
					<?php } ?>
				</div>
			</section>
			<!-- End of right column/section -->
		</div>
		<!-- End of Wrapper -->
	</div>
	<!-- End of Page content -->
<?php echo $this->render('inc/footer.htm') ?>